package net.dopan.pigframe.demo.service.impl;

import net.dopan.pigframe.core.base.service.impl.BaseServiceImpl;
import net.dopan.pigframe.demo.mapper.ActivityClassifyMapper;
import net.dopan.pigframe.demo.model.entity.ActivityClassify;
import net.dopan.pigframe.demo.service.ActivityClassifyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional(rollbackFor = RuntimeException.class)
public class ActivityClassifyImpl extends BaseServiceImpl<ActivityClassifyMapper, ActivityClassify> implements ActivityClassifyService {

    @Autowired
    private ActivityClassifyMapper activityClassifyMapper;

    @Override
    public List<ActivityClassify> findAll() {
        return activityClassifyMapper.selectList(null);
    }
}
